Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sweep GHA Fix] The GitHub Actions run failed with... #66

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jan 11, 2024

Description

This pull request includes several changes to fix issues with the GitHub Actions workflow and improve code formatting in the frontend directory.

Summary

  • Added a new workflow file .github/workflows/frontend.yml to run checks on push and pull request events.
  • Added a new workflow file .github/workflows/main.yml to build the project on push events to the main branch.
  • Updated the .prettierrc.toml file to include formatting options for Svelte files.
  • Updated the main.ts file to fix import statements.
  • Updated the index.html file to fix the doctype declaration.
  • Updated the package.json file to include a new format script for code formatting.
  • Updated the svelte.config.js file to fix import statements.
  • Updated the tsconfig.json file to remove unnecessary newlines.
  • Updated the tsconfig.node.json file to remove unnecessary newlines.
  • Updated the vite.config.ts file to fix import statements.
  • Updated the main.py file to execute a pnpm install command before calling the tools.
  • Added a new file pnpm.py to execute pnpm commands using subprocess.

Please review and merge this pull request to apply the changes.

Copy link
Contributor Author

sweep-ai bot commented Jan 11, 2024

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run pnpm install
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/610191a9-7b81-4725-97b6-d46792266317.sh: line 1: pnpm: command not found

Created Pull Request: #71

Copy link
Contributor Author

sweep-ai bot commented Jan 11, 2024

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run pdm run isort . --check --diff
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
ERROR: /home/runner/work/demo/demo/src/logic/main.py Imports are incorrectly sorted and/or formatted.
--- /home/runner/work/demo/demo/src/logic/main.py:before	2024-01-11 18:02:08.505384
+++ /home/runner/work/demo/demo/src/logic/main.py:after	2024-01-11 18:02:59.900393
@@ -11,7 +11,7 @@

from ..templates.schema.output import Output
from ..utils.load import load_template
-from .tools import call_tool, tools, execute_pnpm_command
+from .tools import call_tool, execute_pnpm_command, tools

main = patch.node(Node)(load_template("main"), {"tools": tools})

Skipped 2 files

Created Pull Request: #77

Copy link
Contributor Author

sweep-ai bot commented Jan 11, 2024

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run pnpm install
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/19dc237a-7425-4954-a587-34502ba67e0a.sh: line 1: pnpm: command not found

Making changes according to plan... (step 3/3)

Copy link
Contributor Author

sweep-ai bot commented Jan 11, 2024

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run pdm run isort . --check --diff
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
ERROR: /home/runner/work/demo/demo/src/logic/main.py Imports are incorrectly sorted and/or formatted.
--- /home/runner/work/demo/demo/src/logic/main.py:before	2024-01-11 18:02:36.267561
+++ /home/runner/work/demo/demo/src/logic/main.py:after	2024-01-11 18:03:28.660244
@@ -11,7 +11,7 @@

from ..templates.schema.output import Output
from ..utils.load import load_template
-from .tools import call_tool, tools, execute_pnpm_command
+from .tools import call_tool, execute_pnpm_command, tools

main = patch.node(Node)(load_template("main"), {"tools": tools})

Skipped 2 files

Created Pull Request: #82

@CNSeniorious000 CNSeniorious000 deleted the sweep/sweep_gha_fix_the_github_actions_run_fai_16 branch January 26, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant